<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=0.5, maximum-scale=2.0, user-scalable=no">
    <title></title>
    <link href="/zyy/Public/css/pay.css" rel="stylesheet" type="text/css">
    <script type="text/javascript"src="/zyy/Public/js/jquery-1.12.1.js"></script>
</head>
<body>
<div class="Content">
    <div class="heading">
        <div class="back">
            <div class="backIcon">
                <img src="/zyy/Public/images/back.png">
            </div>
        </div>
        <div class="logo">
            <img src="/zyy/Public/images/personPhoto.jpg">
        </div>
    </div>
    <div class="payway">
        <div class="payways"><pre>选择支付方式</pre></div>
    </div>
    <div class="weixin">
        <div class="weixinIcon">
            <img src="/zyy/Public/images/nikeIcon.png">
        </div>
        <div class="wei">
            <div class="one"><pre>微信支付</pre></div>
            <div class="two"><pre>推荐安装微信5.0及以上版本</pre></div>
        </div>
        <div class="root"></div>
        <div class="dianji1">
            <!--<img class="image"src="/zyy/Public/images/noSelected.png">-->
            <img id="Icon" src="/zyy/Public/images/selected.png">
        </div>
    </div>


    <div class="weixin">
        <div class="weixinIcon">
            <img src="/zyy/Public/images/zhifubaoIcon.png">
        </div>
        <div class="wei">
            <div class="one"><pre>支付宝</pre></div>
            <div class="two"><pre>推荐有支付宝的用户使用</pre></div>
        </div>
        <div class="rooter"></div>
        <div class="dianji">
            <img id="image" src="/zyy/Public/images/noSelected.png">
        </div>
    </div>
    <div class="submit">
        <div class="Button" id="Btn"><pre>确认支付</pre></div>
    </div>
</div>

</body>
</html>
<script>
    $(document).ready(function() {
        $(".dianji1").click(function(){
            element=document.getElementById("Icon");
            element.src="/zyy/Public/images/selected.png";
            document.getElementById("image").src="/zyy/Public/images/noSelected.png";

        });
        $(".dianji").click(function(){
            document.getElementById("image").src="/zyy/Public/images/selected.png";
            document.getElementById("Icon").src="/zyy/Public/images/noSelected.png";
        });
    });

    function totalMoney(){
        //var b=document.getElementById('select').innerHTML;
        var selectedNumber=document.getElementById("selectt").value;//先获取select的value值
        var TotalMoney=selectedNumber * 1200;
        var single = parseInt(document.getElementById("singlePrice").innerHTML);//将值传给头部价格
        document.getElementById("singlePrice").innerHTML="￥"+ TotalMoney;//获取到值

        document.getElementById("TotalMoney").innerHTML="￥"+TotalMoney;//将获取的值返回到按钮上
    }
    $(function(){
        $(".backIcon img").click(function(){
            window.location.href="<?php echo U('appointment');?>";
        });
        $(".Button").click(function(){
            window.location.href="<?php echo U('appointmentSuccess');?>";
        });
    });
</script>